Instance Types
💡 Definition
AWS EC2 Instance Types are different configurations of virtual hardware (CPU, memory, storage, and networking capacity) designed for specific use cases. They allow you to choose the appropriate resources for your application.
🔑 Key Concepts
- Instance Families: Categorized into families based on their primary function:
- General Purpose (e.g., M, T): Balanced compute, memory, and networking (web servers, small databases).
- Compute Optimized (e.g., C): High-performance processors (batch processing, gaming, scientific modeling).
- Memory Optimized (e.g., R, X): Large amounts of RAM (in-memory databases, real-time analytics).
- Storage Optimized (e.g., I, D): High sequential read/write access to large datasets (NoSQL databases, data warehousing).
- Accelerated Computing (e.g., P, G, F): Hardware accelerators (GPUs, FPGAs) for machine learning, graphics.
- Size: Within each family, instances come in various sizes (e.g.,
t2.micro,m5.large).
⚙️ How it Works
When launching an EC2 instance, you select an instance type that matches the performance and resource requirements of your application. The choice affects the cost and capabilities of your virtual server.
🎯 Use Cases
- Web Servers: General Purpose instances.
- Big Data Analytics: Memory Optimized or Storage Optimized instances.
- Machine Learning: Accelerated Computing instances.
- Cost-Optimized Dev/Test: T-series (Burstable Performance Instances) for occasional CPU bursts.
💰 Pricing Model
- Pricing varies significantly by instance type, Region, and pricing model (On-Demand, Reserved Instances, Spot Instances, Savings Plans).
📝 Exam Tips (CLF-C02)
- Know the main families and their primary use cases.
- The smallest, cheapest instance type (often
t2.microort3.micro) is typically eligible for the Free Tier. - The choice of instance type directly impacts cost and performance.
See Also: * EC2 * AMI * EBS * Instance Store